//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "iComponent.hpp"
#include "iCustomComponent.hpp"
#include "iPlotComponent.hpp"
#include "iVCLComponent.hpp"
#include "iXYPlot.hpp"
#include <ExtCtrls.hpp>
#include "iPlot.hpp"
#include <ComCtrls.hpp>
#include "YbCommDevice.h"
#include "iScope.hpp"
#include <Dialogs.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TPanel *Panel1;
	TButton *btnSetup;
	TPageControl *PageControl1;
	TTabSheet *TabSheet1;
	TYbCommDevice *YbCommDevice1;
	TButton *btnStart;
	TButton *btnStop;
	TTabSheet *TabSheet3;
	TMemo *DisplayMemo;
	TButton *btnClear;
	TTimer *Timer1;
	TPanel *Panel2;
	TSplitter *Splitter1;
	TPanel *Panel4;
	TSplitter *Splitter2;
	TPanel *Panel5;
	TiPlot *iPlot2;
	TiPlot *iPlot3;
	TLabel *Label1;
	TLabel *Label2;
	TLabel *Label3;
	TEdit *Edit1;
	TEdit *Edit2;
	TEdit *Edit3;
	TLabel *Label4;
	TLabel *Label5;
	TEdit *EditThresholdLow;
	TEdit *EditThresholdHigh;
	TLabel *Label6;
	TEdit *Edit4;
	TiPlot *iPlot1;
	TLabel *Label7;
	TLabel *Label8;
	TLabel *Label9;
	TEdit *Edit5;
	TLabel *Label10;
	TEdit *Edit6;
	TButton *Button1;
	TSaveDialog *SaveDialog1;
	void __fastcall btnStartClick(TObject *Sender);
	void __fastcall btnSetupClick(TObject *Sender);
	void __fastcall btnStopClick(TObject *Sender);
	void __fastcall FormDestroy(TObject *Sender);
	void __fastcall btnClearClick(TObject *Sender);
	void __fastcall Timer1Timer(TObject *Sender);
	void __fastcall YbCommDevice1Package(TObject *Sender, int NotifyType);
	void __fastcall Edit1KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Edit3KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Edit2KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall EditThresholdHighKeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall EditThresholdLowKeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Edit4KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Edit5KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Edit6KeyPress(TObject *Sender, wchar_t &Key);
	void __fastcall Button1Click(TObject *Sender);

private:	// User declarations
    //int PlotXYZ(int No, int x, int y, int z);

public:		// User declarations
	__fastcall TForm1(TComponent* Owner);
    void Display(AnsiString Msg);
};

//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
